package cn.mrlong.base.utils.websocket;

import android.app.ActivityManager;
import android.content.Context;


public class HandleMessage {
    private Context context;

    public HandleMessage(Context context) {
        this.context = context;
    }

    public void handleMessage(String messageStr) {

    }

    //获取正在运行的activity名字
    private String getRunningActivityName() {
        ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
        String runningActivity = activityManager.getRunningTasks(1).get(0).topActivity.getClassName();
        return runningActivity;
    }


}
